Postscript Font Transformation

(Min1,

Min2)

(Max1,

Max2)

Target

Point

Box

C = (0, 1)
B = (1, 1)
A = (1, 0)
O = (0, 0)
poly1, o, a, b, c = Polygon(O, A, B, C)
E = PointIn(poly1)
B4 = -3
C4 = 1.5
B6 = 1.5
C6 = 3.5
D = PointIn(poly1)
u2: y(E)
u1: x(E)
d: (1 - u1) * B4 + u1 * B6
xT: (1 - u1) * B4 + u1 * B6
yT: (1 - u2) * C4 + u2 * C6
T: (xT, yT)
xTO: (1 - x(O)) * B4 + x(O) * B6
xTA: (1 - x(A)) * B4 + x(A) * B6
xTB: (1 - x(B)) * B4 + x(B) * B6
xTC: (1 - x(C)) * B4 + x(C) * B6
yTO: (1 - y(O)) * C4 + y(O) * C6
yTA: (1 - y(A)) * C4 + y(A) * C6
yTB: (1 - y(B)) * C4 + y(B) * C6
yTC: (1 - y(C)) * C4 + y(C) * C6
AT: (xTA, yTA)
BT: (xTB, yTB)
CT: (xTC, yTC)
OT: (xTO, yTO)
poly2, ot, at, bt, ct = Polygon(OT, AT, BT, CT)
text2: "(Max_1,Max_2)=(" + (LaTeX[B6]) + "," + (LaTeX[C6]) + ")"
text1: "(Min_1,Min_2)=(" + (LaTeX[B4]) + "," + (LaTeX[C4]) + ")"
e = false